package com.yuexiang.melodyhub.authserver.dto.OAuthLogin.response;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class OAuthLoginResponse {

    private String email;

    private String avatar;

    private String token;

    private String type;

    private Long expires;

    public OAuthLoginResponse(String email, String avatar, String token, Long expires) {
        this.email = email;
        this.avatar = avatar;
        this.token = token;
        this.expires = expires;
        this.type = "Bearer";
    }

}
